package com.example.c4;

import java.net.InetSocketAddress;
import java.nio.channels.SocketChannel;

/**
 * @author Jonathan
 * 2021/5/28 21:26
 */
public class Client {
    public static void main(String[] args) throws Exception {
        // 客户端
        SocketChannel socketChannel = SocketChannel.open();
        socketChannel.connect(new InetSocketAddress("localhost", 8080));
        System.out.println("wait.");
    }
}
